@import 'src/variables';
@import '~le5le-ui/variables';

$color-border: #ddd;

:host {
  display: block;
  width: 100%;

  height: 100%;

  & > .flex {
    height: 100%;
  }
}

.tools {
  flex-shrink: 0;
  width: 1.65rem;
  background-color: #f8f8f8;
  border-right: 1px solid $color-border;
  overflow-y: auto;

  .title {
    padding: 0.05rem 0.1rem;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #ccc;

    &:first-child {
      border-top: none;
    }
  }

  .buttons {
    padding: 0.1rem 0;
    a {
      display: inline-block;
      color: $color;
      line-height: 1;
      width: 0.4rem;
      height: 0.4rem;
      text-align: center;
      text-decoration: none !important;

      .iconfont {
        font-size: 0.24rem;
      }
    }
  }
}

.full {
  flex: 1;
  width: initial;
  position: relative;
  overflow: auto;
}

.props {
  flex-shrink: 0;
  width: 2.4rem;
  background-color: #f8f8f8;
  border-left: 1px solid $color-border;
  overflow-y: auto;
  position: relative;

  .title,
  .popup-title {
    padding: 0.05rem 0.15rem;
    border-bottom: 1px solid #ccc;
    display: flex;
  }
}

.context-menus {
  position: fixed;
  z-index: 100;
  color: #000;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  min-width: 1.5rem;
  text-align: left;
  padding: 0.08rem 0;

  & > div {
    line-height: 2.2;
    a {
      color: $color;
      display: block;
      padding: 0 0.2rem;
      text-decoration: none;

      &.flex {
        display: flex;
      }

      &.disabled {
        color: $color-gray !important;
        cursor: default;
      }
    }
  }

  .line {
    background-color: transparent !important;
    padding: 0;
    margin: 0.05rem 0;
    border-top: 1px solid #eee;
  }
}
